package breeze.tool.life.utils;
import android.graphics.drawable.GradientDrawable;
import android.graphics.Color;

public class AppStyles {
    
    /*
	*@author BREEZE
	*@date 2021-11-20 15:12:44
    */
    public static final String TAG = "AppStyles";
	
	private static GradientDrawable gd;
	
	public static int color(String colorHex){
		return Color.parseColor(colorHex);
	}
	
	public static GradientDrawable getGaokaoTimeStyle(int time){
		gd = new GradientDrawable();
		if(time > 200){
			gd.setColor(color("#009688"));
		}else if(time > 100 && time <= 200){
			gd.setColor(color("#EF6C00"));
		}else{
			gd.setColor(color("#F44336"));
		}
		gd.setCornerRadius(20);
		return gd;
	}
	
	public static GradientDrawable appIconColor(String color){
		gd = new GradientDrawable();
		gd.setColor(color(color));
		gd.setCornerRadius(20);
		return gd;
	}
	
	public static GradientDrawable getEdittextStyle(){
		gd = new GradientDrawable();
		gd.setColor(color("#f2f3f5"));
		gd.setCornerRadius(20);
		return gd;
	}
	
	
    
}
